package com.moujitx.wecom.config;

import com.moujitx.wecom.common.Wecom;
import com.moujitx.wecom.repository.MessageLogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class WecomConfig {
    @Autowired
    private MessageLogRepository messageLogRepository;

    @PostConstruct
    public void init() {
        Wecom.setMessageLogRepository(messageLogRepository);
    }
}